<!DOCTYPE html>

<html lang="${lang}">
    <head>
        <title>#{get 'title' /}</title>
        <meta charset="${_response_encoding}" />
        <link rel="stylesheet" media="screen" href="@{'/public/stylesheets/main.css'}" />
        <link rel="stylesheet" media="screen" href="@{'/public/stylesheets/bootstrap.css'}">
        <link rel="stylesheet" media="screen" href="@{'/public/stylesheets/bootstrap-journal.css'}">
        #{get 'moreStyles' /}
        <link rel="shortcut icon" type="image/png" href="@{'/public/images/favicon.png'}">
        <script src="@{'/public/javascripts/jquery.min.js'}" type="text/javascript" charset="${_response_encoding}"></script>
	    <script src="@{'/public/javascripts/bootstrap.js'}"></script>
        #{get 'moreScripts' /}
    </head>
    <body>
		<!-- 管理控制台 正文 开始 -->
		<div id="wrap">
			<!-- 管理控制台 导航栏 开始-->
			<nav class="navbar navbar-default" role="navigation">
			    <div class="container">
			        <div class="navbar-header">
			            <a class="navbar-brand" href="@{CRUD.index()}">&{'website.name'}-&{'crud.title'}</a>
			        </div>
			        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			        	<ul class="nav navbar-nav">
			        		<li><a href="/">返回网站</a></li>
			        	</ul>
			        	#{crud.search /}
			            <ul class="nav navbar-nav navbar-right">
			                <li class="dropdown">
			                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
			                    	${session.get('username')}
			                        <span class="caret"></span></a>
			                    <ul class="dropdown-menu" role="menu">
			                        <li><a href="/logout">注销</a></li>
			                    </ul>
			                </li>
			            </ul>
			        </div>
			    </div>
			</nav>
			<!-- 管理控制台 导航栏 结束 -->
			<div class="container">
    			<div class="row">
    				<!-- 左边栏 -->
    				<div class="col-lg-2 well">
	                   <ul class="nav nav-list" >
	                  		#{include 'CRUD/left.html' /}
	                   </ul>
                   </div>
                   <!-- 左边栏结束 -->
                   
                   <div class="col-lg-10">
                   		<!-- 面包屑 -->
                   		#{if request.actionMethod != 'index'}
				            <div class="col-lg-12">
				                #{crud.navigation /}
				            </div>
						#{/if}
						<!-- 面包屑结束 -->
						<!-- 提示条 -->
						<div class="col-lg-12">
							#{if flash.success}
					            <div class="alert alert-success" role="alert">
					            	${flash.success}
					            </div>
							#{/if}
							#{if flash.error || error}
					            <div class="alert alert-danger" role="alert">
					            	${error ?: flash.error}
					            </div>
							#{/if}
						</div>
						<!-- 提示条结束 -->
						
						#{doLayout /}
                   </div>
				</div>
			</div>
		
		<div id="push"></div>
		</div> 
        <!-- 管理控制台 正文 结束 -->
        
        <!-- 管理控制台 页底 开始 -->
        <div id="footer">
		    <div class="container">
		        <p class="muted credit"> <a href="http://www.mengcms.cn">MengCMS官方网站</a> <a href="http://www.mengcms.cn/help">使用帮助</a>.</p>
		    </div>
		</div>
        <!-- 管理控制台 页底 结束 -->
    </body>
</html>
